package com.qianying.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.qianying.comment.CommonResult;
import com.qianying.entity.CustomerMaterial;

/**
 * 客户材料Service接口
 */
public interface CustomerMaterialService extends IService<CustomerMaterial> {

    /**
     * 分页查询客户材料列表
     */
    CommonResult<Page<CustomerMaterial>> getPage(Page<CustomerMaterial> page, String customer);

    /**
     * 根据ID查询详情
     */
    CommonResult<CustomerMaterial> getById(Long id);

    /**
     * 新增客户材料记录
     */
    CommonResult<?> saveMaterial(CustomerMaterial material);

    /**
     * 更新客户材料记录
     */
    CommonResult<?> updateMaterial(CustomerMaterial material);

    /**
     * 根据ID删除记录
     */
    CommonResult<?> removeById(Long id);
}
